package com.sandasai.service;

import java.util.List;

import com.sandasai.domain.Admin;
import com.sandasai.vo.MarkBean;
import com.sandasai.vo.PageBean;
import com.sandasai.vo.SettingBean;
import com.sandasai.vo.StudentBean;
import com.sandasai.vo.TeacherBean;
import com.sandasai.vo.UserBean;

public interface AdminManager {

	boolean postNotice(String noticeContent);

	String getNoticeContent();

	boolean setTime(String startTimeOfRegistration,
			String endTimeOfRegistration, String startTimeOfSubmission,
			String endTimeOfSubmission);

	String getStartTimeOfRegistration();

	String getEndTimeOfRegistration();

	String getStartTimeOfSubmission();

	String getEndTimeOfSubmission();

	SettingBean getSettingBean();

	boolean addAdmin(UserBean userBean);

	boolean addTeacher(UserBean userBean);

	//List<MarkBean> distributeWorks();

	PageBean queryForPageWork(int pageSize, int page);

	PageBean queryForPage(int pageSize, int page);

	PageBean queryForPageTeach(int pageSize, int page);

	PageBean queryForPageSt(int pageSize, int page);

	void distributeWorks();

	Admin findByAdminId(int id);

	TeacherBean findByTeaId(int id);

	StudentBean findByStuId(int id);

	boolean deleteStudent(int id);

	boolean deleteTeacher(int id);

	boolean deleteAdmin(int id);

	void setStudentState(int id, int isPass);

}
